package com.gxp.system.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.gxp.common.core.domain.entity.ZkServiceType;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.gxp.common.annotation.Excel;
import com.gxp.common.core.domain.BaseEntity;

import java.util.Date;

/**
 * 服务2对象 zknj_service
 * 
 * @author zh
 * @date 2024-07-18
 */
public class ZknjService extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long serId;

    /** 名称 */
    @Excel(name = "名称")
    private String serName;

    /** 描述 */
    @Excel(name = "描述")
    private String serDes;

    /** 状态 */
    @Excel(name = "状态")
    private Long serStatus;

    /** 仪器 */
    @Excel(name = "仪器")
    private Long instId;

    /** 服务类型 */
    @Excel(name = "服务类型")
    private Long serTypeId;

    private Long isLock;

    private String approveBy;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date approveTime;

    private String approveType;

    private String approveDetail;

    private String comment;

    /** 删除标志（0代表存在 2代表删除） */
    private String delFlag;

    /**
     * 用户是否拥有权限（true:拥有， false:未拥有）
     */
    private boolean userPermissionFlag;

    private ZkInstrument instrument;

    private ZkServiceType serviceType;

    public void setSerId(Long serId) 
    {
        this.serId = serId;
    }

    public Long getSerId() 
    {
        return serId;
    }
    public void setSerName(String serName) 
    {
        this.serName = serName;
    }

    public String getSerName() 
    {
        return serName;
    }
    public void setSerDes(String serDes) 
    {
        this.serDes = serDes;
    }

    public String getSerDes() 
    {
        return serDes;
    }
    public void setSerStatus(Long serStatus) 
    {
        this.serStatus = serStatus;
    }

    public Long getSerStatus() 
    {
        return serStatus;
    }
    public void setInstId(Long instId) 
    {
        this.instId = instId;
    }

    public Long getInstId() 
    {
        return instId;
    }
    public void setSerTypeId(Long serTypeId) 
    {
        this.serTypeId = serTypeId;
    }

    public Long getSerTypeId() 
    {
        return serTypeId;
    }

    public ZkInstrument getInstrument() {
        return instrument;
    }

    public void setInstrument(ZkInstrument instrument) {
        this.instrument = instrument;
    }

    public ZkServiceType getServiceType() {
        return serviceType;
    }

    public void setServiceType(ZkServiceType serviceType) {
        this.serviceType = serviceType;
    }

    public Long getIsLock() {
        return isLock;
    }

    public void setIsLock(Long isLock) {
        this.isLock = isLock;
    }

    public String getApproveBy() {
        return approveBy;
    }

    public void setApproveBy(String approveBy) {
        this.approveBy = approveBy;
    }

    public Date getApproveTime() {
        return approveTime;
    }

    public void setApproveTime(Date approveTime) {
        this.approveTime = approveTime;
    }

    public String getApproveType() {
        return approveType;
    }

    public void setApproveType(String approveType) {
        this.approveType = approveType;
    }

    public String getApproveDetail() {
        return approveDetail;
    }

    public void setApproveDetail(String approveDetail) {
        this.approveDetail = approveDetail;
    }

    public String getComment() {
        return comment;
    }

    public void setComment(String comment) {
        this.comment = comment;
    }

    public String getDelFlag() {
        return delFlag;
    }

    public void setDelFlag(String delFlag) {
        this.delFlag = delFlag;
    }

    public boolean isUserPermissionFlag() {
        return userPermissionFlag;
    }

    public void setUserPermissionFlag(boolean userPermissionFlag) {
        this.userPermissionFlag = userPermissionFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("serId", getSerId())
            .append("serName", getSerName())
            .append("serDes", getSerDes())
            .append("serStatus", getSerStatus())
            .append("instId", getInstId())
            .append("serTypeId", getSerTypeId())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("isLock", getIsLock())
            .append("approveBy", getApproveBy())
            .append("approveTime", getApproveTime())
            .append("approveType", getApproveType())
            .append("approveDetail", getApproveDetail())
            .append("comment", getComment())
            .append("delFlag", getDelFlag())
            .toString();
    }
}
